package com.whacos.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whacos.common.entity.BaseEntity;
import lombok.Data;
import lombok.ToString;


/**
 * @author xiongdun
 * @description 部门信息
 * @since 2018/11/17 17:11
 */
@TableName(value = "t_sys_dept")
@Data
@ToString
public class SysDept extends BaseEntity {

    private static final long serialVersionUID = -6173974006337421454L;

    //上级部门ID，一级部门为0
    private Long parentId;

    // 部门领导
    @TableField(exist = false)
    private SysUser leader;

    private Long leaderId;
    //部门名称
    private String deptName;
    // 部门邮箱
    private String deptEmail;
    //排序
    private Integer orderNum;
    // 状态
    private Integer status;

    public SysDept() {
        super();
    }

    public SysDept(Long parentId) {
        super();
        this.parentId = parentId;
    }

}
